extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]磁性鱼雷引信"
	att.mgiAtk = 60
	att.cd = 0.2
	info = "雷击伤害无法被闪避[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onAtkInfo", self, "onAtkInfo")

func onAtkInfo(atkInfo):
	if atkInfo.atkCha == masCha and atkInfo.hitCha.team != masCha.team and atkInfo.atkType == sys.AtkType.TORPEDO:
		atkInfo.ignoreDod = true

func upgrade():
	name = "[color=#FFFF00][史诗]磁性鱼雷引信"
	att.mgiAtk = 120
	att.cd = 0.4